package com.wslNB.mapper;

import com.wslNB.domain.User;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper {


    @Select("select * from tb_user")
    User findAll();

    //登录校验
    @Select("select * from tb_user where phone=#{phone} and password=#{password}")
    User findByPhoneAndPassword(User user);

}
